import React from 'react'
// import { Editor } from 'components'
// import { convertToRaw } from 'draft-js'
import { Button, Row, Col, Card, Typography, Icon } from 'antd'
// import draftToHtml from 'draftjs-to-html'
// import draftToMarkdown from 'draftjs-to-markdown'
import { withI18n, Trans } from '@lingui/react'
import { connect } from 'dva'
import { router } from 'utils'
import { Page } from 'components'
// import { Map, Marker, Circle, NavigationControl, InfoWindow } from 'react-bmap'
import { Exception } from 'ant-design-pro'

// const { Paragraph, Title } = Typography

@withI18n()
@connect(({ configs, loading }) => ({ configs, loading }))
class Configs extends React.Component {
  // 接口调用冷却时间

  // 固件版本
  componentDidMount() {
    const { dispatch } = this.props
    dispatch({ type: 'configs/query' })
  }
  render() {
    const { configs, loading } = this.props
    const { data } = configs

    return <Page inner>{JSON.stringify(data)}</Page>
  }
}

export default Configs
